package redirector.impl;

import dao.HibernateClienteDao;
import entity.OrdenCompraEntity;

public class OrdenCompraSRV {
	private static HibernateClienteDao dao;
	static {
		dao = HibernateClienteDao.getInstancia();
		
	}
	public int obtenerNumeroOrden() {
		try{
			return dao.obtenerNumeroOrdenCompra();
		}catch(Exception e){
			
		}
		return -1;
	}
	public void guardarOrden(OrdenCompraEntity or) {
		try{
			dao.guardarOrdenCompra(or);
		}catch(Exception e){
			
		}
		
	}

}
